<template>
  <div class="app-con">
    <Header />
    <div class="app-main">
      <router-view />
    </div>
    <Footer />
  </div>
</template>
<script>
import Header from './components/Header/index.vue'
import Footer from './components/Footer/index.vue'
import { useConfig } from '@/stores/config.js'
export default {
  name: 'upNetwork',
  components: {
    Header,
    Footer
  },

  data() {
    return {}
  },
  created() {
    this.init()
  },
  mounted() {
    window.addEventListener('resize', this.init)
  },
  methods: {
    init() {
      let windowWidth = window.innerWidth
      console.log(windowWidth)
      if (windowWidth > 800) {
        useConfig().setIsPc(true)
      } else {
        useConfig().setIsPc(false)
      }
    }
  }
}
</script>
<style lang="less">
@import url('./assets/fontFace.less');
* {
  margin: 0px;
  padding: 0px;
}

.app-con {
  background: #000;
  min-height: 100vh;
  color: rgba(232, 232, 232, 1);
  font-family: DM Sans;
}
.con-title {
  font-size: 40px;
  text-align: center;
  line-height: 1.5;
  font-weight: bold;
  margin-bottom: 20px;
}
.con-desc {
  font-size: 24px;
  text-align: center;
  line-height: 1.5;
  color: rgba(220, 220, 220, 1);
  div {
    text-align: center;
  }
}
@media screen and (max-width: 768px) {
  .con-title {
    font-weight: 600;
    font-size: 32px;
    line-height: 120%;
    letter-spacing: 0%;
    text-align: center;
    text-transform: capitalize;
    margin-bottom: 20px;
  }
  .con-desc {
    font-weight: 400;
    font-size: 16px;
    line-height: 120%;
    letter-spacing: 0%;
    text-align: center;

    div {
      text-align: center;
    }
  }
}
</style>
